package com.tcm.im.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "spring.hxconfig")
public class HxConfig {
    private String orgName = "1161210313065406";//企业的唯一标识，开发者在环信开发者管理后台注册账号时填写的企业 ID
    private String clientId = "YXA6FeeNhmMQTZm8faKN2JOJ4A";//App的client_id
    private String clientSecret = "YXA63iV6pqrrE8GK8k8lAYmDCcH1mnc";//App的client_secret
    private String password = "YXA6FeeNhmMQTZm8faKN2JOJ4A";
    private String appName = "xiangyuantang";//	同一“企业”下“APP”唯一标识，开发者在环信开发者管理后台创建应用时填写的“应用名称”
    private String urlPrefix = "http://a1.easemob.com/" + orgName + "/" + appName + "/";//链接前缀

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getUrlPrefix() {
        return urlPrefix;
    }

    public void setUrlPrefix(String urlPrefix) {
        this.urlPrefix = urlPrefix;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
